package com.cskaoyan.yesterday;

/*
      对象数组
 */
public class Demo1 {

    public static void main(String[] args) {

        // 定义要给存放Student对象的数组
        Student[] students = new Student[5];

        //NullPointerException   null.a
        //System.out.println(students[0].a);

        students[0] = new Student();
        System.out.println(students[0].a);
    }
}


class Student {
    int a;
}